package com.tgb.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.tgb.dao.AuditDao;
import com.tgb.entity.Approve;

/**
 * 请假审批管理
 *
 * @author hejingyuan
 */
@Service
@Transactional(readOnly = true)
public class AuditManager {
	//审批dao
	private AuditDao auditDao;

    public AuditDao getAuditDao() {
		return auditDao;
	}

    @Autowired
	public void setAuditDao(AuditDao auditDao) {
		this.auditDao = auditDao;
	}
    /**
     * 保存审批信息
     * @param entity
     */
    @Transactional(readOnly = false)
    public void save(Approve entity) {
    	auditDao.save(entity);
    }
}
